package com.ssmsq.multidatabase.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author sss
 */
@Data
@TableName(value = "ywzx_xiangmu")
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class YwzxXiangmu {

    private static final long serialVersionUID=1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId
    private Long id;
    private String bh;
    private String mc;
    private String lxid;
    private Date kssj;
    private Date jssj;
    private String xmzt;
    private String ms;
    private String yhid;
    private String yhnc;
    private String bmid;
    @TableLogic(value = "false", delval = "true")
    @TableField(value = "sfsc", fill = FieldFill.INSERT)
    private Boolean sfsc;
    private String cjr;
    @TableField(fill = FieldFill.INSERT)
    private Date cjsj;
    private String gxr;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gxsj;
}
